#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void sort(int* p, int n)
{
	int i = 0; int j = 0;
	for (i = 1; i < n; i++)
	{
		for (j = 0; j < n - 1; j++)
		{
			if (p[j] > p[j + 1])
			{
				int tmp = 0;
				tmp = p[j + 1];
				p[j + 1] = p[j];
				p[j] = tmp;
			}
		}
	}

}
int main()
{
	int n = 0;
	int arr[100] = { 0 };
	while (scanf("%d", &n) == 1)
	{
		int i = 0;
		for (i = 0; i < n; i++)
		{
			scanf("%d", &arr[i]);
		}
		sort(arr, n);
		for (i = 0; i < n; i++)
		{
			printf("%d ", arr[i]);
		}
		printf("\n");
	}

	return 0;
}